<?php

class Alarma extends MY_Model {

 
    function Alarma()
    {
        // Call the Model constructor
        parent::MY_Model();
                
                $this->setTituloModificar("Modificar Alarma");
                $this->setTituloListado("Listado de Alarmaa");
                $this->setTituloCrear("Crear Alarma");
                
                $this->nombreTabla = "alarma";
                $this->idT1= "idalarma";
                $this->nombreCampo = "momento";

                $this->campos[] = array("realname" => "idpasajeroxdepto",
                                        "clase" => "partof",
                                        "label" => "Pasajero por departamento",
                                        "modelo" => "pasajeroxdepto",
                                        "rules" => "required|integer");
                
                $this->campos[] = array("realname" => "momento",
                                        "clase" => "text",
                                        "label" => "Nombre",
                                        "rules" => "required");
                
                $this->campos[] = array("realname" => "detalle",
                                        "clase" => "textarea",
                                        "label" => "Descripcion",
                                        "rules" => "required|max_length[100]|texto");
                        
    }

}

?>
